# coding: utf-8
# @Time    : 2023/12/14 11:36
# @Author  : gongshuangxi
# @Email   : sxgong@topdatasec.com

import sys
from flask import Blueprint
from libs.common import tdslogger
from apps.app0 import xx_views
from flask import jsonify

try:
    # python2
    reload(sys)
    sys.setdefaultencoding('utf-8')
except:
    # python3
    pass

bp_app0 = Blueprint('app0', __name__)

def blueprint_app0():
    xx_views.api.register(bp_app0)
    return bp_app0

@bp_app0.route("/yy/get", methods=["GET"])
def app0_get():
    tdslogger.info("bp_app0 in xx_get")
    re_dict = dict()
    re_dict['recode'] = 1
    re_dict['remsg'] = "bp_app0"
    re_dict['data'] = list()
    return jsonify(re_dict)